package com.itcast.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    /**
     * 商品名字
     */
    @TableField("gname")
    private String gname;

    /**
     * 商品销量
     */
    @TableField("sales")
    private Integer sales;

    /**
     * 创建时间
     */
    @TableField("creationTime")
    private Date creationTime;

    /**
     * 商品价格
     */
    @TableField("price")
    private float price;

    /**
     * 商品简介
     */
    @TableField("introduction")
    private String introduction;

    /**
     * 商品分类
     */
    @TableField("item")
    private String item;

    /**
     * 商品浏览量
     */
    @TableField("views")
    private Integer views;

    /**
     * 商品图片
     */
    @TableField("gimage")
    private String gimage;


    /**
     * 商品数量
     */
    @TableField("goodsNumber")
    private Integer goodsNumber;


    /**
     * 商品图片集合
     */
    private List<Goodsimg> imgList;

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }

    public String getGimage() {
        return gimage;
    }

    public void setGimage(String gimage) {
        this.gimage = gimage;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public List<Goodsimg> getImgList() {
        return imgList;
    }

    public void setImgList(List<Goodsimg> imgList) {
        this.imgList = imgList;
    }
}
